[skip changelog] Specify that includes
field items should be in library
#1305
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)Docs update
The library.properties
includes
field specifies a custom list of files to be added to the sketch by the IDE as#include
directives. Library authors sometimes add filenames from library dependencies to this field. However, that doesn't make any sense because all Arduino development software versions with support for theincludes
field also have support for resolution of the dependencies of libraries, meaning that there is no need for these library dependency#include
directives to be placed in the sketch.For this reason, Arduino Lint rule
LP052
("library.properties includes field item(s) not found in library.") was configured to be an error when the tool's compliance setting is at the default "specification" level.The required rules in "specification" mode are intended to match the official Arduino Library Specification, however, the is currently no mention in the Arduino Library Specification of any restrictions on the contents of the library.properties
includes
field.The Arduino Library Specification's documentation of the
includes
field mentions that it should contain files of the library itself.Since this requirement is fairly common sense, and the format of the library.properties fields documentation somewhat
constraining, I attempted to document it with minimal verbosity.
titled accordingly?
Not a breaking change.